﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlinePrint.aspx.cs" EnableViewState="false"
    Inherits="Card.Web.OnlinePrint" %>

<%@ Import Namespace="Card.Common" %>
<%@ Register Src="Controls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Controls/QQService.ascx" TagName="QQ"  TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=this.AreaDesc %>名片印刷_<%=SiteName %></title>
    <link href="css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="css/mp.css" type="text/css" rel="Stylesheet" />
    <link href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" rel="Stylesheet" />

    <script type="text/javascript">
        var imgServer = '<%=Card.Utility.ImageUtilty.ImageServer + "/" %>'; 
    </script>

    <script src="JavaScript/jquery-1.8.3.min.js" type="text/javascript"></script>

    <script src="JavaScript/math-operation.js" type="text/javascript"></script>

    <script src="JavaScript/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>

    <script src="JavaScript/common.js" type="text/javascript"></script>

    <script src="JavaScript/card-selector.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="header" LinkIndex="1" runat="server" />
    <div class="main">
        <div class="top_info clear-fix">
            <h2>
                名片在线制作</h2>
        </div>
        <div class="card_editor_key clear-fix" id="cardprint">
            <div class="left">
                <div class="tab_ctn_search clear-fix">
                    <span class="Tel_name">
                        <asp:Literal ID="ltlCardName" runat="server"></asp:Literal>
                    </span>
                </div>
                <div class="card_tpl_Show clear-fix">
                    <ul id="card_ctn" runat="server">
                        <span class="chushuixian"></span><span class="ico2012522">尽量在裁剪线以内排版，裁剪时正常误差0.5-2mm</span>
                        <li id="card_front">
                            <asp:Image ID="frontImg" runat="server" /></li>
                        <li id="card_back">
                            <asp:Image ID="backImg" runat="server" /></li>
                    </ul>
                </div>
            </div>
            <div class="right" id="card_editor_form_ctn">
                <div class="top_info">
                    <h2>
                        名片印刷</h2>
                </div>
                <div class="Printing_choose">
                    <ul class="buyExplain">
                        <li class="price_soso">价 格：<span id="price" class="yellow">11</span>元/盒*<span id="num"
                            class="yellow">2</span>盒<span id="spWT" style="display: none;">+<span class="yellow"><asp:Literal
                                ID="ltlAdjustPrice" Text="8" runat="server"></asp:Literal></span>元</span>=<span class="price yellow"
                                    id="total">30</span>元</li>
                        <%--<li class="Prefer" style="display: none;">活 动：<span class="red">暂无活动</span></li>--%>
                        <li class="Freight">运 费：<span>免费送货上门<strong class="gray">（偏远地区除外）</strong></span></li>
                        <%
                            Card.Entity.SiteSetting setting = Card.Common.SettingCache.GetSiteSettingByType(Card.CONST.SiteSettingType.TEL);
                            if (setting != null && !string.IsNullOrEmpty(setting.Value))
                            {
                        %>
                        <li class="Freight">电 话：<span><%=setting.Value%></span></li>
                        <%}%>                       
                        <li class="Freight">咨 询：<uc1:QQ ID="QQ1" runat="server" /></li>                        
                        <%--<li class="Manner">付款方式：<span title="账户充值">账户充值</span><span title="支持开通了网上银行的银行卡付款">网银支付</span><span
                            title="支持使用支付宝付款">支付宝支付</span><span title="支持使用财付通付款">财付通支付</span></li>--%>
                        <li class="peopleSerice">特殊服务：<label for="ajustCheck"><input type="checkbox" onclick="adjust()"
                            id="ckbAdjust" />
                            人工微调(仅限修改文字,微调服务另收<asp:Literal ID="ltlAdjustPrice1" Text="8" runat="server" />元)</label></li>
                        <li class="ajustment" id="adjust-li" style="display: none;">微调描述：<textarea cols="40"
                            rows="5" id="txtAdjust" onfocus="focus_adjust()" onblur="blur_adjust()" class="">仅限明确具体的文字排版类调整，如更换字体、调整字号大小、添加删减文字段或排版位置调整等。且微调后直接安排印刷，不再另行确认</textarea></li>
                    </ul>
                    <div class="card_select">
                        <ul>
                            <li>
                                <table border="0" width="100%">
                                    <tr>
                                        <td style="width: 10px;" valign="top">
                                            <label>
                                                纸张/工艺：</label>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="rptParper" runat="server">
                                                <ItemTemplate>
                                                    <span c='<%# Eval("CARD_CODE") %>' id="paper_<%# Eval("CARD_CODE") %>" onclick="select('paper','<%# Eval("CARD_CODE") %>')"
                                                        class='paper <%# string.Compare(Eval("CARD_CODE").ToString(),this.DefaultCard.CardCode,true) == 0 ?"show":string.Empty %>'
                                                        p="<%# GetPaperPrice(Eval("CARD_CODE").ToString()) %>" d="<%# Eval("DECRIPTION") %>" >
                                                        <%# Eval("CARD_NAME") %></span></ItemTemplate>
                                            </asp:Repeater>
                                            <a target="_blank" href="knowledge.aspx#cypaper" class="paperdifference">纸张区别</a>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li>
                                <table border="0" width="100%">
                                    <tr>
                                        <td style="width: 10px;" valign="top">
                                            <label>
                                                边角：</label>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="rptCorner" runat="server">
                                                <ItemTemplate>
                                                    <span c='<%# Eval("CORNER_CODE") %>' id="corner_<%# Eval("CORNER_CODE") %>" onclick="select('corner','<%# Eval("CORNER_CODE") %>')"
                                                        class='corner <%# string.Compare(Eval("CORNER_CODE").ToString(),this.DefaultCorner.CornerCode,true) == 0 ?"show":string.Empty %>'
                                                        p="<%# Eval("PRICE") %>">
                                                        <%# Eval("CORNER_NAME") %></span></ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li>
                                <table border="0" width="100%">
                                    <tr>
                                        <td style="width: 10px;" valign="top">
                                            <label>
                                                单人印刷盒数：</label>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="rptNumber" runat="server">
                                                <ItemTemplate>
                                                    <span c='<%# Eval("NUM") %>' id="num_<%# Eval("NUM") %>" onclick="select('num','<%# Eval("NUM") %>')"
                                                        class='num <%# string.Compare(Eval("NUM").ToString(),this.DefaultPrice.Num.ToString(),true) == 0?"show":string.Empty %>'>
                                                        <%# Eval("NUM")%>盒</span></ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li class="ico">(提示：每盒100张)</li>
                        </ul>
                        <p style="padding: 15px 0 10px 20px">
                            <span id="fahuotishiico">注：当日18:00前支付的订单，次日出货。</span></p>
                        <p>
                            已选择：<span id="select_paper">"300g铜版纸"</span><span id="select_corner">"圆角(每盒加2元)"</span><span
                                id="select_num">"单人2盒"</span></p>
                         <p>
                            纸张说明：<span id="spanDesc"></span>
                         </p>
                        <asp:HiddenField ID="hnd_paper" runat="server" />
                        <asp:HiddenField ID="hnd_corner" runat="server" />
                        <asp:HiddenField ID="hnd_num" runat="server" />
                        <asp:HiddenField ID="hndCardID" runat="server" />
                        <asp:HiddenField ID="hndCardType" runat="server" />
                        <asp:HiddenField ID="hndAdjustPrice" Value="8" runat="server" />
                        <input type="button" class="btn1" value="" onclick="add_cart(now_buy);">
                        <input type="button" class="btn2" onclick="add_cart();" title="稍候统一购买">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <uc1:Footer ID="footer" runat="server" />

    <script type="text/javascript">
        calculate();
    </script>

    </form>
</body>
</html>
